package com.suian.spring.common.service.impl;

import com.suian.spring.annotation.RunnerLogger;
import com.suian.spring.aspect.LogAspect;
import com.suian.spring.common.service.Runner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class AppRunner implements Runner {
    private static final Logger logger = LoggerFactory.getLogger(LogAspect.class);

    @Override
    public void run() {
        logger.info(">>> AppRunner方法运行了");
    }

    @RunnerLogger
    public void testAnnotation() {
        logger.info(">>> 注解标记的方法运行了");
    }
}
